package com.net.Thread;


class Demo extends Thread
{
  private String name;
  
  Demo(String name)
  {
	  this.name = name;
  }

public void run()
{
	System.out.println(" name is " +name);
}
  
  
	
}









public class DemoThread {

	public static void main(String[] args)
	{
		Demo d = new Demo("fdfdfddfdfd");
		
		d.start();

	}

}
